Skip to content

Instantly share code, notes, and snippets.

View lixuejiang's full-sized avatar

lixuejiang lixuejiang

View GitHub Profile
@Gaubee
Gaubee / mind-pact.js
Last active August 8, 2018 07:15
Mind Pact.JS——JS的灵魂契约
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['MP'], factory);
} else {
root.MP = factory(root.b);
}
}(this, function(__global) {
var QuotedString = /"(?:\.|(\\\")|[^\""\n])*"|'(?:\.|(\\\')|[^\''\n])*'/g, //引号字符串
$NULL = null,
$UNDEFINED,
@HungYuHei
HungYuHei / regexp-exclude-specified-string
Created September 12, 2012 09:11
正则表达式匹配不包含指定字符串
// exclude foo_bar
^(?!.*?foo_bar).*?$