You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In reference to pull request #74 and my comments on 66fb4f9 about trying to find a more natural way of writing the command I'm wondering what people's thoughts would be about using the following regexp:
hubot translate me "<phrase>" from <source> into <target>
Where the from and into sections are optional. It basically comes down to whether people would prefer the current order where the comes last and no double quotation marks are required, or this which feels more natural to me? I've kept it as double quotation marks as singles may be part of the word or phrase to be translated.
I've also changed some of the non required groups such as (translate) to non matching groups to tidy up the results to pull in. I'll do this whichever way people decide the command should work. When people decide I'll submit a pull request with the updated code.
The text was updated successfully, but these errors were encountered:
No problem, that was my concern in the first place, just wasn't sure what people would prefer. I'll just tidy up the current regexp with non-matching groups to make it cleaner.
In reference to pull request #74 and my comments on 66fb4f9 about trying to find a more natural way of writing the command I'm wondering what people's thoughts would be about using the following regexp:
which would give the option of either
or
Where the from and into sections are optional. It basically comes down to whether people would prefer the current order where the comes last and no double quotation marks are required, or this which feels more natural to me? I've kept it as double quotation marks as singles may be part of the word or phrase to be translated.
I've also changed some of the non required groups such as
(translate)
to non matching groups to tidy up the results to pull in. I'll do this whichever way people decide the command should work. When people decide I'll submit a pull request with the updated code.The text was updated successfully, but these errors were encountered: