Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 104 #127

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Fix issue 104 #127

wants to merge 11 commits into from

Conversation

parmentf
Copy link
Collaborator

This is a Pull Request to integrate the fix-issue-104 branch into the master branch.

It was intended to fix #104, but the issue does not contain any description of the problem.
Nor does the branch add or modify a test, so it's hard to know what has to be fixed.

Copy link
Collaborator Author

@parmentf parmentf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ces commentaires sont autant pour moi que pour Nicolas Kieffer, ils m'ont permis de revenir dans le code.

packages/conditor/src/affAlign.js Outdated Show resolved Hide resolved
packages/conditor/src/rnsr.js Outdated Show resolved Hide resolved
packages/conditor/src/rnsr.js Outdated Show resolved Hide resolved
packages/conditor/src/rnsr.js Outdated Show resolved Hide resolved
packages/conditor/src/rnsr.js Outdated Show resolved Hide resolved
packages/conditor/src/strings.js Outdated Show resolved Hide resolved
export const removeQuote = replace(/'/g, ' ');
/**
* Deplete string from accents, upper case, dash and simple quotes.
* @param {string} str
* @returns {string}
* @private
*/
export const depleteString = compose(toLower, removeAccents, removeQuote, removeDash, String);
export const depleteString = compose(toLower, removeQuote, removeDash, removeAccents, String);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ça peut être dû à un encodage contenant un tiret (que removeDash supprime), donc pourquoi pas?

globalConfig.json Show resolved Hide resolved
Replaced arr with indexes in contain.
target has not to be sorted, its tokens' order is important, though.
isIn takes only one argument, the second was thus useless.
Add the types, and clarify comment.
It was not taking into account the longer labels or numeros.
Use the previous hasSigle, to prevent false positives.
@parmentf
Copy link
Collaborator Author

Tant qu'on n'aura pas précisé le but de cette intervention, ce n'est pas la peine d'intégrer cette Pull Request dans la branche master: il ne reste qu'une modification mineure, qui ne change rien aux tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update @ezs/conditor package (rnsr)
2 participants