@@ -698,8 +698,8 @@ function Framework() {
698698
699699 this . validators = {
700700 email : new RegExp ( '^[a-zA-Z0-9-_.+]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$' ) ,
701- url : / ^ ( h t t p s ? : \/ \/ (?: w w w \. | (? ! w w w ) ) [ ^ \s \ .# ! : \? \ += & @ ! $ ' ~ * , ; \/ \( \) \ [\] ] + \. [ ^ \s # ! \? \ += & @ ! $ ' ~ * , ; \( \) \ [\] \\ ] { 2 , } \/ ? | w w w \. [ ^ \s # ! : \. \? \ += & @ ! $ ' ~ * , ; \/ \( \) \ [\] ] + \. [ ^ \s # ! \? \ += & @ ! $ ' ~ * , ; \( \) \ [\] \\ ] { 2 , } \/ ? ) / i,
702- phone : / ^ [ \ +] ? [ ( ] ? [ 0 - 9 ] { 3 } [ ) ] ? [ - \s \ .] ? [ 0 - 9 ] { 3 } [ - \s \ .] ? [ 0 - 9 ] { 4 , 6 } $ / im,
701+ url : / ^ ( h t t p s ? : \/ \/ (?: w w w \. | (? ! w w w ) ) [ ^ \s . # ! : ? + = & @ ! $ ' ~ * , ; / ( ) [ \] ] + \. [ ^ \s # ! ? + = & @ ! $ ' ~ * , ; ( ) [ \] \\ ] { 2 , } \/ ? | w w w \. [ ^ \s # ! : . ? + = & @ ! $ ' ~ * , ; / ( ) [ \] ] + \. [ ^ \s # ! ? + = & @ ! $ ' ~ * , ; ( ) [ \] \\ ] { 2 , } \/ ? ) / i,
702+ phone : / ^ [ + ] ? [ ( ] ? [ 0 - 9 ] { 3 } [ ) ] ? [ - \s . ] ? [ 0 - 9 ] { 3 } [ - \s . ] ? [ 0 - 9 ] { 4 , 6 } $ / im,
703703 zip : / ^ \d { 5 } (?: [ - \s ] \d { 4 } ) ? $ / ,
704704 uid : / ^ \d { 14 , } [ a - z ] { 3 } [ 0 1 ] { 1 } $ /
705705 } ;
@@ -1331,7 +1331,7 @@ F.resize = function(url, fn, flags) {
13311331 var flag = flags [ i ] ;
13321332 if ( flag [ 0 ] === '.' )
13331333 extensions [ flag . substring ( 1 ) ] = true ;
1334- else if ( flag [ 0 ] === '~' || flag [ 0 ] === '/' || flag . match ( / ^ h t t p \ :| h t t p s \ :/ gi) )
1334+ else if ( flag [ 0 ] === '~' || flag [ 0 ] === '/' || flag . match ( / ^ h t t p : | h t t p s : / gi) )
13351335 path = flag ;
13361336 else if ( flag === 'nocache' )
13371337 cache = false ;
@@ -1350,7 +1350,7 @@ F.resize = function(url, fn, flags) {
13501350 else if ( extensions [ 'jpeg' ] && ! extensions [ 'jpg' ] )
13511351 extensions [ 'jpg' ] = true ;
13521352
1353- F . routes . resize [ url ] = { fn : fn , path : U . path ( path || url ) , ishttp : path . match ( / h t t p \ :| h t t p s \ :/ gi) ? true : false , extension : extensions , cache : cache } ;
1353+ F . routes . resize [ url ] = { fn : fn , path : U . path ( path || url ) , ishttp : path . match ( / h t t p : | h t t p s : / gi) ? true : false , extension : extensions , cache : cache } ;
13541354 F . owners . push ( { type : 'resize' , owner : _owner , id : url } ) ;
13551355 return F ;
13561356} ;
@@ -2991,9 +2991,9 @@ F.error = function(err, name, uri) {
29912991 }
29922992
29932993 if ( ! name && ! uri && err . stack ) {
2994- var defer = err . stack . match ( / \/ \w + \/ d e f e r \ - .* ?\. j s / ) ;
2994+ var defer = err . stack . match ( / \/ \w + \/ d e f e r - .* ?\. j s / ) ;
29952995 if ( defer )
2996- err . stack = err . stack . replace ( defer , defer . toString ( ) ) . replace ( / \/ \w + \/ d e f e r \ -/ , '/' ) . split ( '$' ) . join ( '/' ) ;
2996+ err . stack = err . stack . replace ( defer , defer . toString ( ) ) . replace ( / \/ \w + \/ d e f e r - / , '/' ) . split ( '$' ) . join ( '/' ) ;
29972997 }
29982998
29992999 F . onError ( err , name , uri ) ;
@@ -6252,7 +6252,7 @@ F.initialize = function(http, debug, options, restart) {
62526252
62536253 F . isHTTPS = http . STATUS_CODES === undefined ;
62546254
6255- if ( isNaN ( port ) && typeof ( port ) !== 'string' )
6255+ if ( isNaN ( port ) && typeof ( port ) !== 'string' )
62566256 port = null ;
62576257
62586258 if ( options . id )
@@ -8123,7 +8123,7 @@ F.$configure_workflows = function(arr, clean) {
81238123 line . substring ( index + 1 ) . split ( '-->' ) . forEach ( function ( operation , index ) {
81248124
81258125 var options = 'options||EMPTYOBJECT' ;
8126- operation = operation . trim ( ) . replace ( / \ "/ g, '\'' ) ;
8126+ operation = operation . trim ( ) . replace ( / " / g, '\'' ) ;
81278127
81288128 var oindex = operation . indexOf ( '{' ) ;
81298129 if ( oindex !== - 1 ) {
@@ -8228,7 +8228,7 @@ F.$configure_configs = function(arr, rewrite) {
82288228 if ( existsSync ( configs ) ) {
82298229 var tmp = Fs . readdirSync ( configs ) ;
82308230 for ( var i = 0 , length = tmp . length ; i < length ; i ++ ) {
8231- var skip = tmp [ i ] . match ( / \ -( d e b u g | r e l e a s e | t e s t ) $ / i) ;
8231+ var skip = tmp [ i ] . match ( / - ( d e b u g | r e l e a s e | t e s t ) $ / i) ;
82328232 if ( skip ) {
82338233 skip = skip [ 0 ] . toString ( ) . toLowerCase ( ) ;
82348234 if ( skip === '-debug' && ! F . isDebug )
@@ -8309,7 +8309,7 @@ F.$configure_configs = function(arr, rewrite) {
83098309 break ;
83108310 case 'default-image-consumption' :
83118311 case 'default-image-quality' :
8312- obj [ name ] = U . parseInt ( value . replace ( / \ %| \s / g, '' ) ) ;
8312+ obj [ name ] = U . parseInt ( value . replace ( / % | \s / g, '' ) ) ;
83138313 break ;
83148314
83158315 case 'static-accepts-custom' :
@@ -11445,7 +11445,7 @@ Controller.prototype.json = function(obj, headers, beautify, replacer) {
1144511445Controller . prototype . success = function ( is , value ) {
1144611446 if ( is === undefined )
1144711447 is = true ;
11448- return this . json ( SUCCESS ( is , value ) )
11448+ return this . json ( SUCCESS ( is , value ) ) ;
1144911449} ;
1145011450
1145111451/**
0 commit comments