Skip to content

Commit

Permalink
v.0.6.0, refactoring + optimisation changes + typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos M committed Dec 7, 2016
1 parent 275496c commit f624b9f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/js/RegexAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ var rnd = function( a, b ){ return Math.round((b-a)*Math.random()+a); },
pad = function( s, n, z ) {
var ps = String(s);
z = z || '0';
while ( ps.length < n ) ps += z + ps;
while ( ps.length < n ) ps = z + ps;
return ps;
},
char_code = function( c ) { return c[CHARCODE](0); },
Expand Down
2 changes: 1 addition & 1 deletion src/js/RegexAnalyzer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/php/RegexAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private static function esc_re( $s, $esc, $chargroup=false )
private static function pad( $s, $n, $z='0' )
{
$ps = (string)$s;
while ( strlen($ps) < $n ) $ps .= $z . $ps;
while ( strlen($ps) < $n ) $ps = $z . $ps;
return $ps;
}
private static function to_array( $x )
Expand Down
2 changes: 1 addition & 1 deletion src/python/RegexAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def esc_re( s, esc, chargroup=False ):

def pad( s, n, z='0' ):
ps = str(s)
while len(ps) < n: ps += z + ps
while len(ps) < n: ps = z + ps
return ps

def char_code( c ):
Expand Down

0 comments on commit f624b9f

Please sign in to comment.