0.2.17 • Published 2 months ago

extend-arabic-query v0.2.17

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

extend-arabic-query

This package provides a function that returns a modified string with RegEx fixes to the most commonly found typos or unopenionated letter substitutions.

Usage example showing the use of match method on a string against another string with substituted letter

Usage

Use the function extendQuery(string) ONLY in querying/search as the first argument for RegExp() or any other RegEx like .match() or .replace(). NEVER use it to fix actual strings. As mentioned before, the function uses regular expressions (RegEx), so you can also make use of that by inserting any ECMAScript compatible regex syntax into the query, like capture groups (()) and search lists ([]) and lookaheads ((?)) and other syntax.

Note that, the function skips any text enclosed between (parenthesis) or [square parenthesis]. That's how it works, to avoid substituting the performed substitutions, which might eventually cause an infinit loop.

Also, note that it works by default on single line strings. So, if you are matching against a multiline string, simply add the 'm' flag to the second argument in the RegExp() class.

Install

Simply install the package into your project node_modules/ via your package manager:

npm install extend-arabic-query
yarn extend-arabic-query

Then, import the function to your module or javascript file:

import { extendQuery } from 'extend-arabic-query';
0.2.17

2 months ago

0.2.16

2 months ago

0.2.15

2 months ago

0.2.14

2 months ago

0.2.13

2 months ago

0.2.12

2 months ago

0.2.11

2 months ago

0.2.10

2 months ago

0.2.7

2 months ago

0.2.6

2 months ago

0.2.9

2 months ago

0.2.8

2 months ago

0.2.5

2 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.1.7

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago