summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote 'nre' into add-nreFlaviu Tamas2015-05-2647-0/+46616
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nre-proj/master: (132 commits) Change to options module Reweave readme Better handle errors Update documentation Change flags to inline Improve performance Add tests for empty or non-empty match Fix skipping an empty match at the end Add longer flags Fix getinfo overflows Use docweave Convert readme to RST Fix result shadowing warning Throw an exception when replacing with a nil value Fix potential buffer overflow Fix zero-length matches for multibyte characters Make splitting an empty string give 1 empty result Change endpos to inclusive Change endpos default from -1 to int.high Change capture upper bounds to inclusive ...
| * Change to options moduleFlaviu Tamas2015-05-266-24/+25
| |
| * Reweave readmeFlaviu Tamas2015-05-112-44/+57
| | | | | | | | Also fix some syntax errors in the RST
| * Merge pull request #14 from BlaXpirit/inline-optionsFlaviu Tamas2015-05-085-125/+121
| |\ | | | | | | Inline options
| | * Update documentationOleh Prypin2015-04-131-37/+38
| | |
| | * Change flags to inlineOleh Prypin2015-04-135-88/+83
| | | | | | | | | | | | | | | Flags can no longer be specified in a 2nd argument. Now they are part of the regular expression string.
| * | Merge pull request #13 from flaviut/better-exceptionsFlaviu Tamas2015-05-041-6/+25
| |\ \ | | |/ | |/| Better handle errors
| | * Better handle errorsFlaviu Tamas2015-05-041-6/+25
| |/ | | | | | | Fixes #7
| * Improve performanceFlaviu Tamas2015-04-121-1/+1
| | | | | | | | | | | | | | | | Removing ANCHORED means that after findIter is unable to find any more matches, it doesn't bother searching unless there are some promising 0-len matches. This significantly improves performance on problems like `"abccccccccccccc".find(re"a")`. Previously, each "c" would require a call to pcre_exec, which would iterate over [index_of_c..string.len], a O(n^2) process!
| * Add tests for empty or non-empty matchOleh Prypin2015-04-121-1/+11
| |
| * Fix skipping an empty match at the endOleh Prypin2015-04-123-4/+5
| |
| * Add longer flagsFlaviu Tamas2015-04-112-15/+33
| | | | | | | | It is now possible to use longer flags instead of the short one-letter ones.
| * Fix getinfo overflowsFlaviu Tamas2015-04-111-4/+5
| |
| * Use docweaveFlaviu Tamas2015-04-112-186/+336
| | | | | | | | The readme file is now generated from the contents of the nre module.
| * Convert readme to RSTFlaviu Tamas2015-04-112-194/+269
| |
| * Fix result shadowing warningFlaviu Tamas2015-04-101-5/+5
| |
| * Throw an exception when replacing with a nil valueFlaviu Tamas2015-04-103-30/+43
| |
| * Fix potential buffer overflowFlaviu Tamas2015-04-101-0/+1
| | | | | | | | | | Under certain circumstances, it would be possible for a too-large number sent cause a buffer overflow by passing a too-large endpos.
| * Merge pull request #10 from BlaXpirit/fix-skip-zeroFlaviu Tamas2015-04-104-5/+8
| |\ | | | | | | Fix zero-length matches for multibyte characters
| | * Fix zero-length matches for multibyte charactersOleh Prypin2015-04-104-5/+8
| |/
| * Merge pull request #9 from BlaXpirit/masterFlaviu Tamas2015-04-092-2/+2
| |\ | | | | | | Make splitting an empty string give 1 empty result
| | * Make splitting an empty string give 1 empty resultOleh Prypin2015-04-102-2/+2
| |/
| * Merge pull request #8 from BlaXpirit/incl-indicesFlaviu Tamas2015-04-095-49/+49
| |\ | | | | | | Change capture upper bounds to inclusive
| | * Change endpos to inclusiveOleh Prypin2015-04-093-10/+11
| | |
| | * Change endpos default from -1 to int.highOleh Prypin2015-04-092-12/+12
| | |
| | * Change capture upper bounds to inclusiveOleh Prypin2015-04-095-30/+29
| |/
| * Add CircleCIFlaviu Tamas2015-04-091-0/+39
| |
| * Adjust readme formattingFlaviu Tamas2015-03-301-1/+8
| | | | | | | | | | - Add table of contents - Move image to bottom
| * Remove renderBounds()Flaviu Tamas2015-03-051-7/+0
| | | | | | A debug proc, it's not really useful and throws warnings anyway.
| * Fix broken logic in 7296c6dFlaviu Tamas2015-03-041-4/+6
| | | | | | | | Thanks @fowlmouth for pointing this problem out in IRC.
| * Fix tests broken in 7296c6dFlaviu Tamas2015-03-041-1/+2
| | | | | | | | 7296c6d doesn't do any nil checking, so it segfaults on `==` on `Regex`
| * Fix "could not import: pcre_stack_guard"Flaviu Tamas2015-03-041-0/+1
| | | | | | | | | | | | kanaka/mal#20 related, seems like some systems have older PCREs, without pcre_stack_guard. Since it isn't expclitly used, this will *hopefully* prevent errors from occurring.
| * Add equality operator for RegexMatch and RegexFlaviu Tamas2015-03-032-1/+13
| | | | | | | | | | - Technically a breaking change, but I doubt anyone depends on a compile-time error for long ;)
| * Add more details about modifier syntaxFlaviu Tamas2015-02-111-1/+7
| | | | | | See discussion on #4 for details.
| * Remove unnecessary filterFlaviu Tamas2015-02-071-2/+1
| | | | | | | | The things it was filtering do not need to be filtered
| * Use /bin/shFlaviu Tamas2015-02-071-1/+1
| | | | | | | | Apparently /usr/bin/sh only works in Arch Linux
| * Bump version numberFlaviu Tamas2015-01-311-2/+2
| |
| * Update documentationFlaviu Tamas2015-01-311-3/+4
| |
| * Change RegexMatch from ref to OptionFlaviu Tamas2015-01-315-23/+20
| | | | | | | | Also associated changes to tests and code
| * Remove match cacheFlaviu Tamas2015-01-281-7/+1
| |
| * Bump versionFlaviu Tamas2015-01-241-1/+1
| |
| * Allow custom test parametersFlaviu Tamas2015-01-241-1/+1
| |
| * Add start to splitFlaviu Tamas2015-01-243-6/+13
| |
| * Bump versionFlaviu Tamas2015-01-211-1/+1
| |
| * Fix build on windowsFlaviu Tamas2015-01-211-25/+24
| | | | | | | | Issues including "pcre.h", but it's not needed anyway! I can just get rid of it.
| * Add logoFlaviu Tamas2015-01-203-1/+2
| |
| * Add dynlib optionFlaviu Tamas2015-01-202-28/+48
| |
| * Elaborate on UCPFlaviu Tamas2015-01-201-1/+1
| |
| * Fix incorrect property checkFlaviu Tamas2015-01-202-1/+3
| |
| * Enable UTF and UCP support in PCREFlaviu Tamas2015-01-203-2/+8
| |