Function isNoMagic

Check if value is _NOMAGIC__. This means magic rules from the less preferable MIME paths should be ignored.

bool isNoMagic(T) (
  scope const(T)[] value
) pure nothrow @nogc @trusted
if (is(T == char) || is(T == ubyte) || is(T == byte) || is(T == void));

Example

assert(isNoMagic("__NOMAGIC__"));
assert(!isNoMagic("somemagic"));