Skip to content

docs: fix module mapper regex in Flow documentation - #7731

Merged
iansu merged 1 commit into
react:masterfrom
FezVrasta:patch-5
Sep 25, 2019
Merged

docs: fix module mapper regex in Flow documentation#7731
iansu merged 1 commit into
react:masterfrom
FezVrasta:patch-5

Conversation

@FezVrasta

Copy link
Copy Markdown
Contributor

With the currently documented regex we catch relative imports, that then get wrongly mapped.

For example, ./Foobar.js will become <PROJECT_ROOT>/src/./Foobar.js, instead of <PROJECT_ROOT>/src/the/real/file/path/Foobar.js.

The new regex will exclude imports starting with a dot (.)

With the currently documented regex we catch relative imports, that then get wrongly mapped.
For example, `./Foobar.js` will become `<PROJECT_ROOT>/src/./Foobar.js`, instead of `<PROJECT_ROOT>/src/the/real/file/path/Foobar.js`.
The new regex will exclude imports starting with a dot (`.`)
@FezVrastaFezVrasta changed the title Update adding-flow.mddocs: fix module mapper refex in Flow documentationSep 25, 2019
@FezVrastaFezVrasta changed the title docs: fix module mapper refex in Flow documentationdocs: fix module mapper regex in Flow documentationSep 25, 2019
@iansu
iansu merged commit 0d1775e into react:masterSep 25, 2019
@iansu

Copy link
Copy Markdown
Contributor

Thanks!

@FezVrasta
FezVrasta deleted the patch-5 branch September 25, 2019 16:59
@locklockBot locked and limited conversation to collaborators Sep 30, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@FezVrasta@iansu@facebook-github-bot