Browse Source

Changing the regex for %f so the it will match e-, e+ and e.

experimental/first_unicode_implementation
Raghubansh Kumar 19 years ago
parent
commit
7deb552a07
  1. 2
      run-tests.php

2
run-tests.php

@ -1600,7 +1600,7 @@ COMMAND $cmd
$wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
$wanted_re = str_replace('%d', '\d+', $wanted_re);
$wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
$wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E[+-]?\d+)?', $wanted_re);
$wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E|e[+-]?\d+)?', $wanted_re);
$wanted_re = str_replace('%c', '.', $wanted_re);
// %f allows two points "-.0.0" but that is the best *simple* expression
}

Loading…
Cancel
Save