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

Allow newlines in Resource Paths #114

Merged
merged 4 commits into from
Jan 24, 2018
Merged

Allow newlines in Resource Paths #114

merged 4 commits into from
Jan 24, 2018

Conversation

schmidt-sebastian
Copy link
Contributor

This fixes b/72385233 by allowing all characters for document IDs.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 23, 2018
@codecov
Copy link

codecov bot commented Jan 23, 2018

Codecov Report

Merging #114 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #114   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        1644   1644           
=====================================
  Hits         1644   1644
Impacted Files Coverage Δ
src/path.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5be8477...ea1d47d. Read the comment docs.

@schmidt-sebastian schmidt-sebastian removed their assignment Jan 23, 2018
src/path.js Outdated
@@ -27,7 +27,7 @@ const validate = require('./validate')();
*
* @type {RegExp}
*/
const RESOURCE_PATH_RE = /^projects\/([^/]*)\/databases\/([^/]*)(?:\/documents\/)?(.*)$/;
const RESOURCE_PATH_RE = /^projects\/([^/]*)\/databases\/([^/]*)(?:\/documents\/)?([\s\S]*)$/;

This comment was marked as spam.

This comment was marked as spam.

@schmidt-sebastian schmidt-sebastian merged commit 19c3a15 into master Jan 24, 2018
@ghost ghost removed the cla: yes This human has signed the Contributor License Agreement. label Jan 24, 2018
@schmidt-sebastian schmidt-sebastian deleted the allownewlines branch January 29, 2018 17:17
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.

None yet

3 participants