mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Normalized strings.
This commit is contained in:
@@ -308,7 +308,7 @@ const VALUE_OPERATORS = {
|
||||
},
|
||||
$near(operand, valueSelector, matcher, isRoot) {
|
||||
if (!isRoot)
|
||||
throw Error("$near can't be inside another $ operator");
|
||||
throw Error('$near can\'t be inside another $ operator');
|
||||
|
||||
matcher._hasGeoQuery = true;
|
||||
|
||||
@@ -549,7 +549,7 @@ function distanceCoordinatePairs(a, b) {
|
||||
// for equality with that thing.
|
||||
export function equalityElementMatcher(elementSelector) {
|
||||
if (isOperatorObject(elementSelector))
|
||||
throw Error("Can't create equalityValueSelector for operator object");
|
||||
throw Error('Can\'t create equalityValueSelector for operator object');
|
||||
|
||||
// Special-case: null and undefined are equal (if you got undefined in there
|
||||
// somewhere, or if you got it due to some branch being non-existent in the
|
||||
|
||||
@@ -717,7 +717,7 @@ LocalCollection.wrapTransform = transform => {
|
||||
|
||||
if (transformed.hasOwnProperty('_id')) {
|
||||
if (!EJSON.equals(transformed._id, id))
|
||||
throw new Error("transformed document can't have different _id");
|
||||
throw new Error('transformed document can\'t have different _id');
|
||||
} else {
|
||||
transformed._id = id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user