parent
91f523af87
commit
773a1c6fd2
17
lib/index.js
17
lib/index.js
|
@ -46,23 +46,6 @@ var GUID_FORMAT_P = '({3}{2}{1}{0}-{5}{4}-{7}{6}-{8}{9}-{10}{11}{12}{13}{14}{15}
|
|||
/* JSSTYLED */
|
||||
var GUID_FORMAT_X = '{0x{3}{2}{1}{0},0x{5}{4},0x{7}{6},{0x{8},0x{9},0x{10},0x{11},0x{12},0x{13},0x{14},0x{15}}}';
|
||||
|
||||
/// Hack a few things we need (i.e., "monkey patch" the prototype)
|
||||
|
||||
if (!String.prototype.startsWith) {
|
||||
String.prototype.startsWith = function (str) {
|
||||
var re = new RegExp('^' + str);
|
||||
return re.test(this);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
if (!String.prototype.endsWith) {
|
||||
String.prototype.endsWith = function (str) {
|
||||
var re = new RegExp(str + '$');
|
||||
return re.test(this);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
///--- API
|
||||
|
|
Loading…
Reference in New Issue